package top.mataiji.manager.service;

import com.github.pagehelper.PageInfo;
import top.mataiji.manager.pojo.Book;
import top.mataiji.manager.pojo.vo.BookVo;

import java.util.List;

/**
 * @Auther: zhaoss
 * @Date: 2021/3/16 - 03 - 16 - 15:38
 * @Description: top.mataiji.manager.service
 * @version: 1.0
 */
public interface BookService {
    List<Book> findAll();

    Book findBookById(Integer id);

    int deleteBookById(Integer bookId);

    public PageInfo<Book> findAllBypage(int pageNo, int pageSize);

    public List<BookVo> findAllBook();

    BookVo findBookBiId(Integer bookId);

    /**
     * 添加书籍
     * @return
     */
    int addBook(Book book);

    int alertBook(Book book);

    List<BookVo> seleteByBook(String name);

    List<BookVo> selectByType(Integer type);
}
